/ Assembly List / LJCNetCommon / AppSettings / GetColorFromRGBString

Namespace - LJCNetCommon


Parameters
rgbText - The RGB text.

Returns

The Color value.

Syntax

C#
public Color GetColorFromRGBString(String rgbText)

Gets a Color from an RGB string. (E)

Example

C#
// App.Config file.
// <configuration>
//   <appSettings>
//     <add key="EndColor" value="255,255,255" />
//   </appSettings>
// </configuration>

using System.Drawing;
using LJCNetCommon;

var appSettings = new AppSettings("AppName.exe.config");
Color endColor;
endColor = appSettings.GetColorFromRGBString("EndColor");

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.